/* ChatsView */

#import <Cocoa/Cocoa.h>

#import "SourceListElement.h"



@interface ChatsView : NSView
{
	IBOutlet NSArrayController *nibControllerConversations;
	IBOutlet NSArrayController *nibControllerParticipants;
	IBOutlet NSArrayController *nibControllerParticipantsAll;
    IBOutlet NSTableView *nibTableRooms;
    IBOutlet NSTableView *nibTableUsers;
	IBOutlet NSView *nibViewGroupChat;
	IBOutlet NSView *nibViewSingleChat;
	id<SourceListElement> _element;
}

- (id<SourceListElement>)element;

- (IBAction)select:(id)sender;
- (IBAction)joinRoom:(id)sender;
- (IBAction)leaveRoom:(id)sender;
- (IBAction)removeRoom:(id)sender;
- (IBAction)startPrivateChats:(id)sender;

- (NSView *)nibViewGroupChat;
- (NSView *)nibViewSingleChat;
@end
